Package com.cisco.pt.ipc.sim.pdu.impl
Class OSPFAsExternalLSAImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFLSAImpl
com.cisco.pt.ipc.sim.pdu.impl.OSPFAsExternalLSAImpl
- All Implemented Interfaces:
IPCData,OSPFAsExternalLSA,OSPFLSA,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected intprotected IPAddressprotected intprotected IPAddressFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFLSAImpl
headerFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) booleangetEBit()intgetFieldType(String fieldName) intvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetEBit(boolean eBit) voidsetExternalRouteTag(int externalRouteTag) voidsetForwardingAddress(IPAddress forwardingAddress) voidsetMetric(int metric) voidsetNetworkMask(IPAddress networkMask) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.OSPFLSAImpl
getHeader, setHeaderMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
networkMask
-
eBit
protected boolean eBit -
metric
protected int metric -
forwardingAddress
-
externalRouteTag
protected int externalRouteTag
-
-
Constructor Details
-
OSPFAsExternalLSAImpl
public OSPFAsExternalLSAImpl()
-
-
Method Details
-
getNetworkMask
- Specified by:
getNetworkMaskin interfaceOSPFAsExternalLSA- Returns:
- IPAddress Returns a IPAddress
-
setNetworkMask
- Specified by:
setNetworkMaskin interfaceOSPFAsExternalLSA- Parameters:
networkMask- Takes in a parameter of networkMask
-
getEBit
public boolean getEBit()- Specified by:
getEBitin interfaceOSPFAsExternalLSA- Returns:
- boolean Returns a boolean
-
setEBit
public void setEBit(boolean eBit) - Specified by:
setEBitin interfaceOSPFAsExternalLSA- Parameters:
eBit- Takes in a parameter of eBit
-
getMetric
public int getMetric()- Specified by:
getMetricin interfaceOSPFAsExternalLSA- Returns:
- int Returns a int
-
setMetric
public void setMetric(int metric) - Specified by:
setMetricin interfaceOSPFAsExternalLSA- Parameters:
metric- Takes in a parameter of metric
-
getForwardingAddress
- Specified by:
getForwardingAddressin interfaceOSPFAsExternalLSA- Returns:
- IPAddress Returns a IPAddress
-
setForwardingAddress
- Specified by:
setForwardingAddressin interfaceOSPFAsExternalLSA- Parameters:
forwardingAddress- Takes in a parameter of forwardingAddress
-
getExternalRouteTag
public int getExternalRouteTag()- Specified by:
getExternalRouteTagin interfaceOSPFAsExternalLSA- Returns:
- int Returns a int
-
setExternalRouteTag
public void setExternalRouteTag(int externalRouteTag) - Specified by:
setExternalRouteTagin interfaceOSPFAsExternalLSA- Parameters:
externalRouteTag- Takes in a parameter of externalRouteTag
-
getFieldType
- Overrides:
getFieldTypein classOSPFLSAImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classOSPFLSAImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classOSPFLSAImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classOSPFLSAImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classOSPFLSAImpl
-